.exam-taking-container {
  padding: 24px;
  background-color: #f5f5f5;
  min-height: 100vh;

  .exam-header {
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

    .ant-card-body {
      padding: 20px 24px;
    }
  }

  .questions-container {
    .question-card {
      margin-bottom: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
      transition: all 0.3s ease;

      &:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      }

      .ant-card-head {
        border-bottom: 1px solid #f0f0f0;

        .ant-card-head-title {
          font-weight: 600;
          color: #262626;
        }
      }

      .question-content {
        margin-bottom: 20px;

        .question-text {
          font-size: 16px;
          line-height: 1.6;
          color: #262626;
          display: block;
          margin-bottom: 16px;
        }
      }

      .question-options {
        .ant-radio-group,
        .ant-checkbox-group {
          width: 100%;

          .ant-radio,
          .ant-checkbox {
            margin-bottom: 12px;
            font-size: 14px;
            line-height: 1.5;

            &:last-child {
              margin-bottom: 0;
            }
          }
        }

        .ant-input {
          border-radius: 6px;
          border: 1px solid #d9d9d9;

          &:focus {
            border-color: #1890ff;
            box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
          }
        }
      }
    }
  }

  .submit-actions {
    margin-top: 24px;
    border-radius: 8px;

    .ant-card-body {
      text-align: center;
      padding: 20px;
    }
  }

  .question-nav {
    border-radius: 8px;
    margin-bottom: 16px;

    .nav-button {
      width: 100%;
      height: 32px;
      border-radius: 4px;
      font-weight: 600;

      &.active {
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
      }
    }
  }

  // 答题状态指示器
  .answer-status {
    &.answered {
      .nav-button {
        background-color: #52c41a;
        border-color: #52c41a;
        color: white;
      }
    }

    &.current {
      .nav-button {
        background-color: #1890ff;
        border-color: #1890ff;
        color: white;
      }
    }
  }

  // 倒计时样式
  .time-warning {
    .ant-alert {
      border-color: #ff7875;
      background-color: #fff2f0;
    }
  }

  .time-danger {
    .ant-alert {
      border-color: #ff4d4f;
      background-color: #fff1f0;
      animation: blink 1s infinite;
    }
  }

  // 自动保存指示器
  .save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 4px;
    font-size: 12px;

    &.saving {
      background-color: #1890ff;
    }

    &.saved {
      background-color: #52c41a;
    }
  }

  // 响应式设计
  @media (max-width: 768px) {
    padding: 16px;

    .exam-header {
      .ant-col {
        margin-bottom: 16px;
      }
    }

    .questions-container {
      .question-card {
        margin-bottom: 16px;

        .ant-card-head-title {
          font-size: 14px;
        }

        .question-text {
          font-size: 14px;
        }
      }
    }

    .question-nav {
      .ant-col {
        span: 6;
      }
    }
  }
}

// 闪烁动画
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.5;
  }
}

// 进度条样式优化
.ant-progress-line .ant-progress-bg {
  transition: all 0.3s ease;
}

// 卡片阴影效果
.ant-card {
  transition: box-shadow 0.3s ease;

  &:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

// 按钮样式优化
.ant-btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;

  &.ant-btn-primary {
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    }
  }

  &.ant-btn-danger {
    &:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
    }
  }
}
